//
//  XDStatusModel.swift
//  weibo
//
//  Created by lucy on 2016/10/26.
//  Copyright © 2016年 com.huashengHuaSheng. All rights reserved.
//

import UIKit

class XDStatusModel: NSObject {
    
    /// 创建时间
    var created_at: String?
    /// 微博ID
    var id: Int64 = 0
    /// 微博信息内容
    var text: String?
    /// 微博来源
    var source: String?
    /// 用户模型
    var user: XDUserModel?
    /// 转发微博模型
    var retweeted_status:XDStatusModel?
    ///int	转发数
    var reposts_count: Int = 0
    /// 评论
    var comments_count: Int = 0
    /// int	表态数
    var attitudes_count: Int = 0
    //配图数组
    var pic_urls : [XDPictureInfoModel]?
    
    //类方法，返回容器中需要存放的数据类型
    class func modelContainerPropertyGenericClass()->[String:Any]{
    
        return ["pic_urls":XDPictureInfoModel.self]
    }

    
    override var description: String{
    
        let keys = ["created_at","id","text","source","pic_urls","user","retweeted_status"]
        return dictionaryWithValues(forKeys: keys).description
    
    }


}




























